Skip to content

Conversation

@BerranRemzi
Copy link
Contributor

@BerranRemzi BerranRemzi commented Jan 13, 2026

This pull request fixes a bug in the handleSDFileList method in handle-SD-files.cpp by correcting the conditional check for a trailing slash in the path variable. The change replaces an assignment operator (=) with the correct equality operator (==), ensuring proper path handling. Without this fix, subfolders cannot be opened, and only the top-level directory of the SD card is visible.

@luc-github
Copy link
Owner

luc-github commented Jan 14, 2026

Thank you, indeed and looks like there is same issue with local FS handler orz....
image

do you mind to update your PR fixing it ?

@BerranRemzi
Copy link
Contributor Author

Please hold this PR for now. I will also include an update to 'esp3d/src/modules/http/handlers/handle-files.cpp'

@BerranRemzi
Copy link
Contributor Author

@luc-github, the PR has been updated and is ready for review

Copy link
Owner

@luc-github luc-github left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

@luc-github
Copy link
Owner

@all-contributors please add @BerranRemzi for bug report and code fix

@allcontributors
Copy link
Contributor

@luc-github

I've put up a pull request to add @BerranRemzi! 🎉

@luc-github luc-github merged commit 2c41562 into luc-github:3.0 Jan 15, 2026
1 check passed
@luc-github
Copy link
Owner

@BerranRemzi thank you so much - seems there for a while

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants